package com.ruoyi.door.controller.app;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.door.domain.DoorPlan;
import com.ruoyi.door.service.DoorPlanService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 【请填写功能名称】Controller
 * 
 * @author ruoyi
 * @date 2025-07-02
 */
@RestController
@RequestMapping("/app-api/door/plan")
@Api(value = "App plan", tags = "App plan")

public class AppDoorPlanController extends BaseController
{
    @Autowired
    private DoorPlanService doorPlanService;

    /**
     * 查询【请填写功能名称】列表
     */
    @ApiOperation("列表")

    @GetMapping("/list")
    public TableDataInfo list(DoorPlan doorPlan)
    {
        List<DoorPlan> list = doorPlanService.selectDoorPlanList(doorPlan);
        return getDataTable(list);
    }


    /**
     * 获取【请填写功能名称】详细信息
     */
    @ApiOperation("详细信息")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
        return success(doorPlanService.selectDoorPlanById(id));
    }


}
